﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yafc.Activity;

namespace yafc.Data
{
	public struct Post
	{
		public Post(yafc.Interface.Post P, Account A)
		{
			post = P;
			account = A;
		}
		public yafc.Interface.Post post;
		public Account account;

		static public bool operator!=(Post lhs, Post rhs)
		{
			return !(lhs == rhs);
		}
		static public bool operator==(Post lhs, Post rhs)
		{
			return lhs.post == rhs.post && lhs.account == rhs.account;
		}
		public override bool Equals(object obj)
		{
			if (!(obj is Post))
				return false;

			return this == (Post)obj;
		}
		public override int GetHashCode()
		{
			return base.GetHashCode();
		}

		static public Post Empty = new Post(null, null);
	}
}
